package com.bootdo.appsystem.service.impl;

import com.bootdo.appsystem.domain.SellerDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.appsystem.dao.UseraccountDao;
import com.bootdo.appsystem.domain.UseraccountDO;
import com.bootdo.appsystem.service.UseraccountService;



@Service
public class UseraccountServiceImpl implements UseraccountService {
	@Autowired
	private UseraccountDao useraccountDao;
	
	@Override
	public UseraccountDO get(Integer uid){
		return useraccountDao.get(uid);
	}
	
	@Override
	public List<UseraccountDO> list(Map<String, Object> map){
		return useraccountDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return useraccountDao.count(map);
	}
	
	@Override
	public int save(UseraccountDO useraccount){
		return useraccountDao.save(useraccount);
	}
	
	@Override
	public int update(UseraccountDO useraccount){
		return useraccountDao.update(useraccount);
	}
	
	@Override
	public int remove(Integer uid){
		return useraccountDao.remove(uid);
	}
	
	@Override
	public int batchRemove(Integer[] uids){
		return useraccountDao.batchRemove(uids);
	}

	@Override
	public void addMoney(Integer uid, Double money) {
		useraccountDao.addMoney(uid , money);
	}

	@Override
	public void addMoneyNotAll(Integer uid, Double money) {
		useraccountDao.addMoneyNotAll(uid , money);
	}

	@Override
	public List<UseraccountDO> getUserChildList(Map<String, Object> map) {
		return useraccountDao.getUserChildList(map);
	}

	@Override
	public int getCountUserChildList(Map<String, Object> map) {
		return useraccountDao.getCountUserChildList(map);
	}

	@Override
	public List<SellerDO> getSellerChildList(Map<String, Object> map) {
		return useraccountDao.getSellerChildList(map);
	}

	@Override
	public int getCountSellerChildList(Map<String, Object> map) {
		return useraccountDao.getCountSellerChildList(map);
	}
}
